package com.v.im.businessapi.dto.paramDTO;

import lombok.Data;

import java.util.Objects;

@Data
public class ImMessageParamDTO {
    private int id;
    private String toId;
    private String fromId;
    private Long sendTime;
    private String content;
    private Character type;
    private Character readStatus;



    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        ImMessageParamDTO that = (ImMessageParamDTO) o;
        return id == that.id &&
                Objects.equals(toId, that.toId) &&
                Objects.equals(fromId, that.fromId) &&
                Objects.equals(sendTime, that.sendTime) &&
                Objects.equals(content, that.content) &&
                Objects.equals(type, that.type) &&
                Objects.equals(readStatus, that.readStatus);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, toId, fromId, sendTime, content, type, readStatus);
    }
}
